tests: Don't drop chdir()'s return value on the floor
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 3 Jan 2022 14:07:25 +0000 (14:07 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 8 Jan 2022 15:17:25 +0000 (15:17 +0000)
Avoid a compile time warning, and ensure that the test suite is actually
doing its job.

testsuite/reftests/gtk-reftest.c

index 3872f554dc9033892a09ae8fd481c87fcf0829df..1dd1a080f210800842f719dd7aafb8554c482071 100644 (file)
@@ -552,7 +552,7 @@ main (int argc, char **argv)
    * is the same as the reftest data, because we're using the
    * "file" property of GtkImage as a relative path in builder files.
    */
-  chdir (basedir);
+  g_assert (chdir (basedir) == 0);
 
   g_log_set_writer_func (log_writer, NULL, NULL);